-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[RNMobile][tech-debt] block-list optimisation #22144
Conversation
Size Change: 0 B Total Size: 1.12 MB ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is looking really good and working nicely. Great work @dratwas ! 🎉
I just left a couple of small questions.
packages/block-editor/src/components/block-list/block-list-item.native.js
Show resolved
Hide resolved
packages/block-editor/src/components/block-list/block-list-item.native.js
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks very good! Thank you so much for this @dratwas
It was needed for so long 🎉
Description
gutenberg-mobile PR - wordpress-mobile/gutenberg-mobile#2262
In this PR i added some performance improvements in our BlockList and Block components. The big part of these changes is described in my p2 post.
Basically i refactored Block and BlockList to not re-render every time when something changes in the editor.
On the gifs below I added the renders count to each block in the top left corner. It shows how many times the block.native.js render has been called.
How has this been tested?
Checklist: